<?php declare(strict_types = 1);

// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

namespace Elasticsearch\Examples\Docs\Mapping\Types;

use Elasticsearch\Examples\Docs\Testers\SimpleExamplesTester;

/**
 *
 * Class: Numeric
 *
 * Date: 2019-08-06 06:59:53
 *
 * @source   mapping/types/numeric.asciidoc
 * @category Elasticsearch\Examples\Docs
 * @license  http://www.apache.org/licenses/LICENSE-2.0 Apache2
 * @link     http://elastic.co
 *
 */
class Numeric extends SimpleExamplesTester {

    /**
     * Tag:  a71c438cc4df1cafe3109ccff475afdb
     * Line: 22
     * Date: 2019-08-06 06:59:53
     */
    public function testExampleL22_a71c438cc4df1cafe3109ccff475afdb()
    {
        $client = $this->getClient();
        // tag::a71c438cc4df1cafe3109ccff475afdb[]
        // TODO -- Implement Example
        // PUT my_index
        // {
        //   "mappings": {
        //     "properties": {
        //       "number_of_bytes": {
        //         "type": "integer"
        //       },
        //       "time_in_seconds": {
        //         "type": "float"
        //       },
        //       "price": {
        //         "type": "scaled_float",
        //         "scaling_factor": 100
        //       }
        //     }
        //   }
        // }
        // end::a71c438cc4df1cafe3109ccff475afdb[]

        $curl = 'PUT my_index'
              . '{'
              . '  "mappings": {'
              . '    "properties": {'
              . '      "number_of_bytes": {'
              . '        "type": "integer"'
              . '      },'
              . '      "time_in_seconds": {'
              . '        "type": "float"'
              . '      },'
              . '      "price": {'
              . '        "type": "scaled_float",'
              . '        "scaling_factor": 100'
              . '      }'
              . '    }'
              . '  }'
              . '}';

        // TODO -- make assertion
    }

// %__METHOD__%


}
